<#include "/macro.include"/>
<#include "/custom.include">
<#assign className = table.className>   
package domain.model;

<#--import java.io.Serializable;-->
import java.util.Date;
import java.math.BigDecimal;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 类名: ${className}Model
 * @author wjt
 */
@ApiModel(value = "${className}Model")
public class ${className}Model implements Serializable{
<#-- 生成注释 开始 -->
	<#-- 生成注释 - 请求参数 -->
<#--
	/**
	* @apiDefine ${className}ModelApiParam
<#list table.columns as column>
	<#if column.javaType == "Boolean">
    * @apiParam {Integer} [${column.columnNameLower}] ${column.columnAlias}
	<#elseif column.javaType == "java.lang.String">
    * @apiParam {String} [${column.columnNameLower}] ${column.columnAlias}
	<#elseif column.javaType == "java.math.BigDecimal">
    * @apiParam {BigDecimal} [${column.columnNameLower}] ${column.columnAlias}
	<#elseif column.javaType == "java.util.Date">
    * @apiParam {Date} [${column.columnNameLower}] ${column.columnAlias}
	<#elseif column.javaType == "java.lang.Long">
    * @apiParam {Long} [${column.columnNameLower}] ${column.columnAlias}
	<#elseif column.javaType == "java.lang.Integer">
    * @apiParam {Integer} [${column.columnNameLower}] ${column.columnAlias}
	<#else>
    * @apiParam {${column.javaType}} [${column.columnNameLower}] ${column.columnAlias}
	</#if>
</#list>
	*/
-->
	<#-- 生成注释 - 返回参数 -->
<#--
	/**
	* @apiDefine ${className}ModelApiSuccess
<#list table.columns as column>
	<#if column.javaType == "Boolean">
	* @apiSuccess (${className}) {Integer} ${column.columnNameLower} ${column.columnAlias}
	<#elseif column.javaType == "java.lang.String">
	* @apiSuccess (${className}) {String} ${column.columnNameLower} ${column.columnAlias}
	<#elseif column.javaType == "java.math.BigDecimal">
	* @apiSuccess (${className}) {BigDecimal} ${column.columnNameLower} ${column.columnAlias}
	<#elseif column.javaType == "java.util.Date">
	* @apiSuccess (${className}) {Date} ${column.columnNameLower} ${column.columnAlias}
	<#elseif column.javaType == "java.lang.Long">
	* @apiSuccess (${className}) {Long} ${column.columnNameLower} ${column.columnAlias}
	<#elseif column.javaType == "java.lang.Integer">
	* @apiSuccess (${className}) {Integer} ${column.columnNameLower} ${column.columnAlias}
	<#else>
	* @apiSuccess (${className}) {${column.javaType}} ${column.columnNameLower} ${column.columnAlias}
	</#if>
</#list>
	*/
-->
<#-- 生成注释 结束 -->
<#-- 生成javaBean -->
    <#list table.columns as column>
    <#--<#if column.pk>
    /**
	 * ${column.columnAlias}
	 */
	private Integer ${column.columnNameLower};-->
	<#if column.javaType == "Boolean">
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private Integer ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.String">
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private String ${column.columnNameLower};
	<#elseif column.javaType == "java.math.BigDecimal">

    /**
    * ${column.columnAlias}
    */
    @ApiModelProperty(value = "${column.columnAlias}")
    private BigDecimal ${column.columnNameLower};
	<#elseif column.javaType == "java.util.Date">
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private Date ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.Long">
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private Long ${column.columnNameLower};
	<#elseif column.javaType == "java.lang.Integer">
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private Integer ${column.columnNameLower};
	<#else>
	
	/**
	 * ${column.columnAlias}
	 */
    @ApiModelProperty(value = "${column.columnAlias}")
	private ${column.javaType} ${column.columnNameLower};
	</#if>
	</#list>

<#list table.columns as column>
	<#if column.javaType == "java.lang.String">
		<#assign type = "String">
	<#elseif column.javaType == "java.util.Date">
		<#assign type = "Date">
	<#elseif column.javaType == "java.math.BigDecimal">
		<#assign type = "BigDecimal">
	<#elseif column.javaType == "java.lang.Integer">
		<#assign type = "Integer">
	<#else>
		<#assign type = column.javaType>
	</#if>
	public ${type} get${column.columnNameLower?cap_first}(){
		return ${column.columnNameLower};
	}
	public void set${column.columnNameLower?cap_first}(${type} ${column.columnNameLower}){
		this.${column.columnNameLower} = ${column.columnNameLower};
	}

</#list>





}